package c.a.a.b0.l;

import c.a.a.b0.j.j;
import c.a.a.b0.j.k;
import c.a.a.b0.j.l;
import c.a.a.b0.k.g;
import c.a.a.f;
import java.util.List;
import java.util.Locale;

/* compiled from: Layer */
public class e {
    public final List<c.a.a.b0.k.b> a;
    public final f b;
    public final String c;
    public final long d;
    public final a e;
    public final long f;
    public final String g;
    public final List<g> h;
    public final l i;
    public final int j;
    public final int k;
    public final int l;
    public final float m;
    public final float n;
    public final int o;
    public final int p;
    public final j q;
    public final k r;
    public final c.a.a.b0.j.b s;
    public final List<c.a.a.f0.a<Float>> t;
    public final b u;
    public final boolean v;

    /* compiled from: Layer */
    public enum a {
        PRE_COMP,
        SOLID,
        IMAGE,
        NULL,
        SHAPE,
        TEXT,
        UNKNOWN
    }

    /* compiled from: Layer */
    public enum b {
        NONE,
        ADD,
        INVERT,
        LUMA,
        LUMA_INVERTED,
        UNKNOWN
    }

    public e(List<c.a.a.b0.k.b> list, f fVar, String str, long j, a aVar, long j2, String str2, List<g> list2, l lVar, int i, int i2, int i3, float f, float f2, int i4, int i5, j jVar, k kVar, List<c.a.a.f0.a<Float>> list3, b bVar, c.a.a.b0.j.b bVar2, boolean z) {
        this.a = list;
        this.b = fVar;
        this.c = str;
        this.d = j;
        this.e = aVar;
        this.f = j2;
        this.g = str2;
        this.h = list2;
        this.i = lVar;
        this.j = i;
        this.k = i2;
        this.l = i3;
        this.m = f;
        this.n = f2;
        this.o = i4;
        this.p = i5;
        this.q = jVar;
        this.r = kVar;
        this.t = list3;
        this.u = bVar;
        this.s = bVar2;
        this.v = z;
    }

    public String a(String str) {
        StringBuilder g = c.b.a.a.a.g(str);
        g.append(this.c);
        String str2 = "\n";
        g.append(str2);
        e e = this.b.e(this.f);
        if (e != null) {
            g.append("\t\tParents: ");
            g.append(e.c);
            e = this.b.e(e.f);
            while (e != null) {
                g.append("->");
                g.append(e.c);
                e = this.b.e(e.f);
            }
            g.append(str);
            g.append(str2);
        }
        if (!this.h.isEmpty()) {
            g.append(str);
            g.append("\tMasks: ");
            g.append(this.h.size());
            g.append(str2);
        }
        if (!(this.j == 0 || this.k == 0)) {
            g.append(str);
            g.append("\tBackground: ");
            g.append(String.format(Locale.US, "%dx%d %X\n", new Object[]{Integer.valueOf(this.j), Integer.valueOf(this.k), Integer.valueOf(this.l)}));
        }
        if (!this.a.isEmpty()) {
            g.append(str);
            g.append("\tShapes:\n");
            for (Object next : this.a) {
                g.append(str);
                g.append("\t\t");
                g.append(next);
                g.append(str2);
            }
        }
        return g.toString();
    }

    public String toString() {
        return a("");
    }
}
